package HandsOn6;

public class Ternary {
	public static void main(String[] args){
		int i= 5;
		System.out.println(ternary(i));
		System.out.println(alternative(i));
	}
	static int ternary(int i){
		return i < 10 ? i * 100 : i * 10;
	}
	static int alternative(int i){
		if (i<10) return i * 100;
		else return i * 10;
	}
}
